<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center ContactUs_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub ContactUs_fd0_0'>
          <view class='flex flex-wrap align-center ContactUs_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  ContactUs_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='ContactUs_fd0_0_c1_c0'>在线客服</text>
          </view>
          <view class='flex flex-wrap align-center justify-end ContactUs_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-center benben-flex-layout">
        <image class='ContactUs_fd1_0' mode="aspectFill" :src='dataInfo.iconUrl'></image>
        <view class='flex flex-wrap align-center ContactUs_fd1_1'>
          <text class='ContactUs_fd1_1_c0'>{{dataInfo.serviceHotline}}</text>
        </view>
        <view class='flex flex-wrap align-center ContactUs_fd1_2'>
          <text class='ContactUs_fd1_2_c0'>客服工作时间：</text>
          <text class='ContactUs_fd1_2_c0'>{{dataInfo.workTime}}</text>
        </view>
        <button class='ContactUs_fd1_3' @tap.stop="callMobile(dataInfo.serviceHotline)">立即拨打</button>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'

  export default {
    components: {},


    data() {
      return {
        "dataInfo": {
          "tel": "",
          "time": "",
          "web_site_address": "",
          "web_site_bgimg": "",
          "web_site_email": ""
        }
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
      this.getUsaFunc()
    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //获取联系我们数据
      async getUsaFunc() {
        //请求方法
        //数据验证

        let datadataInfo = await this.$api.get(global.apiUrls.getSyssetBase, {

        });

        if (datadataInfo.data.code != 0) {
          this.$message.info(datadataInfo.data.msg);
          return
        }
        let infodataInfo = datadataInfo.data;
        this.dataInfo = infodataInfo.data

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: var(--benbenbgColor1);
    background-size: 100% auto;
  }

  .ContactUs_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .ContactUs_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333;
    line-height: 88rpx;
  }

  .ContactUs_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .ContactUs_fd0_0_c0 {
    width: 120rpx;
  }

  .ContactUs_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .ContactUs_fd1_3 {
    background: var(--benbenbgColor7);
    border-radius: 44rpx 44rpx 44rpx 44rpx;
    font-size: 32rpx;
    color: #fff;
    width: 332rpx;
    height: 88rpx;
    line-height: 88rpx;
  }

  .ContactUs_fd1_2_c0 {
    color: #999999;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 40rpx;
  }

  .ContactUs_fd1_2 {
    margin: 0rpx 0rpx 80rpx 0rpx;
  }

  .ContactUs_fd1_1_c0 {
    color: #333333;
    font-size: 40rpx;
    font-weight: 700;
    line-height: 56rpx;
  }

  .ContactUs_fd1_1 {
    margin: 0rpx 0rpx 32rpx 0rpx;
  }

  .ContactUs_fd1_0 {
    width: 139rpx;
    height: 139rpx;
    margin: 120rpx 0rpx 56rpx 0rpx;
  }
</style>
